#!/bin/bash

redball=(`seq 33`)
blueball=(`seq 16`)

#select redball
for i in `seq 6`
do
	a=$[RANDOM%${#redball[@]}]
	s_r[$i]=${redball[$a]}
	unset redball[$a]
	redball=(${redball[@]})
done

#select buleball
b=$[RANDOM%16]
s_b=${blueball[$b]}

echo -e "\e[31mselect redball are:${s_r[1]},${s_r[2]},${s_r[3]},${s_r[4]},${s_r[5]},${s_r[6]}\e[0m"
echo -e "\e[34mselect buleball is:${s_b}\e[0m"
